package action;

import servlet.GameSession;
import servlet.MastermindServlet;
import bean.Message;
import bean.StartGameMessage;

public class ActionStartGame extends MastermindServlet implements Action {
	StartGameMessage mOut;
	public ActionStartGame(Message m){
		mOut = (StartGameMessage)m; 
	}
	public Message call(){		
		GameSession gs = new GameSession();
		gs.setCombi(mOut.getCombi());
		listGameSessions.put(mOut.getIdUser(),gs);
		return null;
	}
}
